<template>
  <div>
    <div class="vertical-align-flex between">
      <div class="form-title">{{item.label || item}}：</div>
      <div class="tip">{{item.tip}}</div>
      <span class="textarea-tip text-green" v-if="item.green">{{item.green||''}}</span>
    </div>
    <textarea class="text-area" :value="value" @change="input"></textarea>
    <!-- <div class="value">
      <span class="textarea-tip">{{item.tip}}</span>
      <span class="textarea-tip text-green">{{item.green||''}}</span>
			<div class="flex-oneline">
				<textarea class="text-area" :value="value" @change="input"></textarea>
			</div>
    </div> -->
  </div>
</template>

<script>

  export default {

    props: ['item', 'value', 'index'],
    methods: {
      input(e) {
        this.$emit("input", e.target.value)
        // console.log(e.target.value)
      }
    }
  }
</script>

<style lang="scss" scoped>

</style>
